package cn.livingCloud.dto;

import cn.livingCloud.entity.content.AbstractReplyContent;
import cn.livingCloud.entity.content.ReplyRule;
import cn.livingCloud.entity.content.TextReplyContent;

/**
 * Created by 唐旭 on 2015/12/26.
 */
public class TextReplyRuleDto extends ReplyRuleDto {
    private TextReplyContentDto contentDto;

    public TextReplyRuleDto(ReplyRule replyRule) {
        super(replyRule);
        AbstractReplyContent content = replyRule.getContent();
        this.contentDto = new TextReplyContentDto((TextReplyContent) content);
    }

    public TextReplyContentDto getContentDto() {
        return contentDto;
    }

    public TextReplyRuleDto setContentDto(TextReplyContentDto contentDto) {
        this.contentDto = contentDto;
        return this;
    }
}
